package com.panshi.service.impl;

import com.panshi.mapper.AdminLoginMapper;
import com.panshi.service.IAdminLoginService;
import com.panshi.tools.AdminLogin;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class AdminLoginServiceImpl implements IAdminLoginService {

    @Autowired
    private AdminLoginMapper adminLoginMapper;


    @Override
    public AdminLogin queryAdminByAdminName(String adminMail) {
        return adminLoginMapper.queryAdminByAdminName(adminMail);
    }

    @Override
    public void forgetAdminPassword(AdminLogin adminLogin) {
        adminLoginMapper.forgetAdminPassword(adminLogin);
    }
}
